# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=rcs
pkgver=5.10.1
pkgrel=1
pkgdesc="Revision Control System"
url="https://www.gnu.org/software/rcs"
arch="all"
license="GPL-3.0-or-later"
depends="diffutils ed"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/rcs/rcs-$pkgver.tar.lz"

build() {
	./configure \
		CFLAGS="$CFLAGS -std=c11" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4d3755d704a05da8582acb78a83845885f34b3144af6d19c568e6707831563b077ec5603a12f5d4de6ec583d0886d3a8ccc7ee0e1f10070f9e6de142198cd530  rcs-5.10.1.tar.lz
"
